package com.adderis.soft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.adderis.soft.domain.dao.IViscositeDao;
import com.adderis.soft.domain.model.Viscosite;
import com.adderis.soft.service.IViscositeBo;

@Service("ViscositeService")
@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
public class ViscositeServiceImpl implements IViscositeBo {


	@Autowired
	private IViscositeDao viscositeDao;

	@Transactional(readOnly = false)
	public void persist(Viscosite transientViscosite) {
		viscositeDao.persist(transientViscosite);

	}

	@Transactional(readOnly = false)
	public void remove(Viscosite persistentViscosite) {
		viscositeDao.remove(persistentViscosite);

	}

	@Transactional(readOnly = false)
	public Viscosite merge(Viscosite detachedViscosite) {

		return viscositeDao.merge(detachedViscosite);
	}
	
	@Transactional(readOnly = false)
	public void remove(Integer id) {
		viscositeDao.remove(id);

	}

	public Viscosite findById(Integer id) {
		return viscositeDao.findById(id);
	}

	public List<Viscosite> findAll() {
		return viscositeDao.findAll();
	}

	public List<Viscosite> search(String searchString) {
		return viscositeDao.search(searchString);
	}

	

}
